//
//  HJAuthResultView.m
//  project
//
//  Created by jc on 2019/4/13.
//  Copyright © 2019 健健. All rights reserved.
//

#import "HJAuthResultView.h"

@implementation HJAuthResultView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(instancetype)init {
    if (self ==[super init]) {
        self = [[NSBundle mainBundle]loadNibNamed:@"HJAuthResultView" owner:nil options:nil].firstObject;
        [self layerConerRadius];
    }
    return self;
}
-(void)layerConerRadius {
    [self setupShadowWithView:self.nameView];
    [self setupShadowWithView:self.cardView];
    [self setupShadowWithView:self.phoneView];
}


- (IBAction)bankBtnClicked:(id)sender {
    if ([self.delegate respondsToSelector:@selector(authResultBankButtonClicked)]) {
        [self.delegate authResultBankButtonClicked];
    }
}
-(void)loadDataSource {
    HJUserModel * userModel = [HJUserManager getUserModel];
    self.nameTF.text = userModel.authInfo.name;
    self.cardTF.text = userModel.authInfo.cardCode;
    self.phoneNumTF.text = userModel.authInfo.mobile;
    
}
@end
